import io.qameta.allure.Step;
import io.restassured.RestAssured;
import io.restassured.response.Response;
import org.junit.jupiter.api.*;

public class LaunchWebAppTest {
    private final String URL = "localhost:9999";

    public String getURL = URL;
    public int expectStatucCode = 403;

//    WebDriver driver = new ChromeDriver();

    @Test
    @DisplayName("Тест статус кода")
    @Step("Делаем запрос {URL} и получаем ответ")
    public void launchBrowser() {
        Response response = RestAssured
                .given()
                .get(URL)
                .then()
                .extract().response();

        Assertions.assertEquals(response.statusCode(), expectStatucCode, "Статус код в порядке!");

//        driver.quit();
    }
}
